package org.zfes.snowier.zbss.xzy.biz.solution.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.zfes.snowier.common.dao.mybatis.BaseMapper;
import org.zfes.snowier.core.data.ParamMap;
import org.zfes.snowier.core.data.Record;
import org.apache.ibatis.annotations.Param;
import org.zfes.snowier.core.data.SelectVo;
import org.zfes.snowier.zbss.xzy.biz.solution.model.SolutionDevice;
@Mapper
public interface SolutionDeviceMapper extends BaseMapper<SolutionDevice>{
	
	Long selectListCount(ParamMap params);
	
	List<Record> selectMapListPage(ParamMap params);
	
	List<SolutionDevice> selectModelListPage(ParamMap params);
	
	
	
	int updateStatus(@Param("id")Long id, @Param("status")Byte status);
	
    List<SelectVo> selectDropList(@Param("status")Byte status);

	List<SolutionDevice> selectByDeviceId(@Param("deviceId") Long deviceId);

	SolutionDevice selectBydevIdAndSolId(@Param("deviceId") Long deviceId,@Param("solutionId")  Long solutionId);

	int deleteBydevIdAndSolIds(@Param("deviceId")Long deviceId, @Param("solutionIds")List<Long> solutionIds);

	int deleteBydeviceId(@Param("deviceId")Long deviceId);

    
}
